package com.weijian.dal.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 用户签到实体类
 * 记录用户的签到行为
 */
@Data
@EqualsAndHashCode(callSuper = true)
@SuperBuilder
@TableName("user_sign_in")
@NoArgsConstructor
@AllArgsConstructor
public class UserSignIn extends BaseDO {
    
    private static final long serialVersionUID = 1L;
    
    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    
    /**
     * 用户ID
     */
    private Long userId;
    
    /**
     * 签到日期
     */
    @TableField("sign_in_date")
    private LocalDate signInDate;
    
    /**
     * 连续签到天数
     */
    @TableField("consecutive_days")
    private Integer consecutiveDays;
    
    /**
     * 本次签到获得积分
     */
    @TableField("reward_points")
    private Integer rewardPoints;
    
    /**
     * 本次签到获得经验值
     */
    @TableField("reward_exp")
    private Integer rewardExp;
}